var Mock = require('mockjs');

exports.response = function (req, res) {

  return Mock.mock({
    "msg": "OK",
    "code": 0,
    "data|50": 
      [{
        "productCode":"@natural(0,1000)",
        "productName":"@string( 7, 10 )",
        "roleId|1": [1, 2],
          'productType': function() {
            return ["LICAI","MONI"][this.roleId - 1]
          },
        
        "origProcutType":'@string( 1, 4 )', 
        "establishDate": "@date(yyyy/MM/dd HH:mm)",
      }],
      "page":{
      "pagesize":15,
      "currentpage":1,
      "totalpage":10,
      "totalnum":50
    }
      
  })
}